﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 食堂表
    /// </summary>
    [Table("C02")]
    public class EM_Canteen:EntityBase
    {
        /// <summary>
        /// 店铺名字
        /// </summary>
        [Required]
        [Column("C001")]
        public string? shop { get; set; }

        /// <summary>
        /// 菜名
        /// </summary>
        [Required]
        [StringLength(50)]
        [Column("C002")]
        public string? Name { get; set; }

        /// <summary>
        /// 厨师
        /// </summary>
        [Required]
        [StringLength(100)]
        [Column("C003")]
        public string? Cooker { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        [Required]
        [Column("C004")]
        public float Price { get; set; }

        /// <summary>
        /// 菜系
        /// </summary
        [Required]
        [StringLength(50)]
        [Column("C005")]
        public string? Cuisine { get; set; }

        /// <summary>
        /// 口味
        /// </summary>
        [Required]
        [StringLength(50)]
        [Column("C006")]
        public string? Taste { get; set; }

        /// <summary>
        /// 添加到菜谱时间
        /// </summary>
        [Required]
        [Column("C007")]
        public DateTime AddTime { get; set; }

    }
}
